package com.ruoyi.system.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

/**
 * 报警对象 warn
 *
 * @author wxd
 * @date 2024-08-31
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class Warn extends BaseEntity {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    private Long id;

    @ApiModelProperty(value = "设备编号")
    @Excel(name = "设备编号")
    private String deviceId;

    @ApiModelProperty(value = "设备名称")
    @Excel(name = "设备名称")
    private String deviceName;

    @ApiModelProperty(value = "设备型号")
    @Excel(name = "设备型号")
    private String deviceModel;

    @ApiModelProperty(value = "所属单位ID")
    private Long deptId;

    @ApiModelProperty(value = "所属单位")
    @Excel(name = "所属单位")
    private String deptStr;

    @ApiModelProperty(value = "所属单位")
    @Excel(name = "所属单位")
    private String deptName;

    @ApiModelProperty(value = "报警类型")
    @Excel(name = "报警类型")
    private String type;

    @ApiModelProperty(value = "用户")
    @Excel(name = "用户")
    private String userName;

    @ApiModelProperty(value = "报警内容")
    @Excel(name = "报警内容")
    private String value;

    @ApiModelProperty(value = "处理状态(0-未处理,1-已处理)")
    @Excel(name = "处理状态")
    private Integer status;

    @ApiModelProperty(value = "报警时间")
    @Excel(name = "报警时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date warnTime;

}
